package com.daniu101.productbargan.service;

import com.daniu101.productbargan.model.Admin;
import com.daniu101.productbargan.model.AdminVo;

public interface IAdminService {


    //插入管理员信息
    String inAdmin(AdminVo adminVo);

    //id
    Admin getAdminById(String id);
    //通过手机查询用户
    Admin getAdminByPhone(String phone);
    //通过邮箱查询用户
    Admin getAdminByEmail(String email);

    //查询管理员个数
    String getAdmins();

    //手机or邮箱 验证码登录
    String loginVercode(AdminVo adminVo);
    // 手机or邮箱 密码
    String loginPassword(AdminVo adminVo);

    // 管理员编辑
    String updateAdmin(Admin admin);
}
